//
//  WWButton.m
//  NTBuildOC
//
//  Created by yuhongdong on 2020/9/13.
//  Copyright © 2020 WeChat. All rights reserved.
//

#import "WWButton.h"
#import "UIButton+Gradient.h"

@implementation WWButton

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
    }
    return self;
}

-(void)gradientWithSize:(CGSize)size{
    [self gradientButtonWithSize:size colorArray:@[[UIColor colorWithHexString:@"#DFFF4B"], [UIColor colorWithHexString:@"#54FFEC"]] percentageArray:@[@0,@1] gradientType:GradientFromLeftToRight];
    self.layer.cornerRadius = 3;
    self.clipsToBounds = YES;
    [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    self.titleLabel.font = [UIFont systemFontOfSize:14];
}



@end

